package org.springblade.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: Sharry
 * @createTime: 2023-12-30 9:57
 * @version: Version-1.0
 */
@AllArgsConstructor
@Getter
public enum FeiShuDocumentEnum {

	/**
	 * 凤仪的维保员文档
	 */
	MAINTENANCE_PERSONNEL("592800", "prod","X90IbHpfvasAkssyhgDcUfswnod",
		"tblH4f40vR5zyBZe",
		"凤仪维保员文档"),

	/**
	 * 凤仪的特检院银河电梯池子
	 */
	GOVERNMENT_ELEVATOR_POOL("592800", "prod","X90IbHpfvasAkssyhgDcUfswnod",
		"tblRRSDL1DOhsaap",
		"凤仪特检院电梯池子"),

	/**
	 * 凤仪的银河电梯排期跟踪
	 */
	GALAXY_ELEVATOR_TRACK("592800", "prod","NqmBbGjl7a8MhOstetjc4aqInXf",
		"tblRiUnEynglJSYx",
		"凤仪的银河电梯排期跟踪"),

	/**
	 * 凤仪的自动扶梯检测报告
	 */
	GALAXY_AUTO_ELEVATOR_REPORT("592800", "prod","SA09bkdS8a35yDsVpXVcZthTnrd",
		"tblDFPyIw30zsxca",
		"凤仪的自动扶梯检测报告"),

	/**
	 * 凤仪的曳引梯检测报告
	 */
	GALAXY_TRACTION_ELEVATOR_REPORT("592800", "prod","SA09bkdS8a35yDsVpXVcZthTnrd",
		"tbl2lv9pDyMrr2PP",
		"凤仪的曳引梯检测报告"),

	/**
	 * 凤仪的银河唯一识别码
	 */
	GALAXY_ELEVATOR_NUMS("592800", "prod","K9DzbBsjwawloEs5qITcK7Z1nGd",
		"tblT3kjwVufLlpYu",
		"凤仪的银河唯一识别码"),

	/**
	 * 少维的配件申请记录_正本
	 */
	PART_APPLY_RECORD("592800", "prod","R2mrbysswal4ALswDW2ck4yVnag",
		"tblUB08ZtfFwicK8",
		"少维的配件申请记录_正本"),

	/**
	 * 凤仪的在保电梯_正本
	 */
	BUILDING_ELEVATOR_UPDATE("592800", "prod","Nbh3bdduTafvhcs9Fm4cm4OFn0c",
		"tblYFcmd6EwEV5t8",
		"凤仪的项目电梯_正本"),

	/**
	 * 少维的银河维保客户_正本
	 */
	MAINTENANCE_CUSTOMER_INFORMATION("592800", "prod","XOWfbI3hBaiDwmsCRMsc8eBgnFb",
		"tblpaXni2oB7VF00",
		"少维的银河维保客户_正本"),

	/**
	 * 凤仪的电梯年审日期_正本
	 */
	ELEVATOR_ANNUAL_REVIEW_DATE("592800", "prod","X90IbHpfvasAkssyhgDcUfswnod",
		"tblvhys4frh8jItz",
		"凤仪的电梯年审日期_正本"),

	/**
	 * 凤仪的电梯排期-合规数据表_正本
	 */
	ELEVATOR_MAINTENANCE_RISK_DATA("592800", "prod","RTgQbRgpma1KebsyBBDcBkLenTf",
		"tblwbOYIYB6YqLjB",
		"凤仪的电梯排期合规管理数据表_正本"),

	/**
	 * 凤仪的保养工单-逾期风险数据表_正本
	 */
	ELEVATOR_MAINTENANCE_OVERDUE_DATA("592800", "prod","RTgQbRgpma1KebsyBBDcBkLenTf",
		"tbliMgRHsIp9NPAS",
		"凤仪的保养工单-逾期风险数据表_正本"),

	/**
	 * 凤仪的保养工单-质量评分数据表_正本
	 */
	ELEVATOR_MAINTENANCE_QUALITY_DATA("592800", "prod","RTgQbRgpma1KebsyBBDcBkLenTf",
		"tbl6BCgaasiCP2hy",
		"凤仪的保养工单-质量评分数据表_正本"),

	/**
	 * 凤仪的特检院匹配失败电梯_正本
	 */
	GOVERNMENT_ELEVATOR_MATCH_FAILURE("592800", "prod","X90IbHpfvasAkssyhgDcUfswnod",
		"tblFdVIzchrllyvr",
		"凤仪特检院匹配失败电梯_正本"),

	/**
	 * 凤仪的每日考勤数据表_正本
	 */
	ELEVATOR_DAILY_ATTENDANCE("592800", "prod","RTgQbRgpma1KebsyBBDcBkLenTf",
		"tblpfRvVWEjtSbi6",
		"凤仪的每日考勤数据表_正本"),

	/**
	 * 天雄的调度队列正本
	 */
	ELEVATOR_QUEUE("592800", "prod","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tblBjUCGRDLlfY6I",
		"天雄的调度队列正本"),

	/**
	 * 天雄的电梯信息正本
	 */
	ELEVATOR_BASIC_INFO("592800", "prod","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tblGuuAEIl2lLxjs",
		"天雄的电梯基础信息正本"),

	/**
	 * 天雄的人员信息正本
	 */
	ELEVATOR_PERSON_INFO("592800", "prod","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tblrO2nG9RzRWRMP",
		"天雄的人员信息正本"),

	/**
	 * 凤仪的每日考勤统计正本
	 */
	ELEVATOR_DAILY_ATTENDANCE_STATISTICS("592800", "prod","RTgQbRgpma1KebsyBBDcBkLenTf",
		"tbl60Q0bhuDzymyo",
		"凤仪的每日考勤统计正本"),

	/**
	 * 宇航的已排期保养梯合同
	 */
	SCHEDULED_MAINTAIN_ELEVATOR_CONTRACT("592800", "prod", "XcUmb6jv0aQOzkskfhtcX1Avnef",
		"tbl7Pxl5fwItaQyG",
		"宇航的已排期保养梯合同"),

	/**
	 * 凤仪的维保员文档_副本，调式专用
	 */
	MAINTENANCE_PERSONNEL_COPY("592800", "test","GYKcbRElTaTduUs3tqkcxRHsnMf",
		"tblNQouLBWEfSyyw",
		"凤仪维保员文档_副本"),

	/**
	 * 凤仪的特检院银河电梯池子_副本，调式专用
	 */
	GOVERNMENT_ELEVATOR_POOL_COPY("592800", "test","GYKcbRElTaTduUs3tqkcxRHsnMf",
		"tbl1mub3zBMTR6Aq",
		"凤仪特检院电梯池子_副本"),

	/**
	 * 凤仪的银河电梯排期跟踪_副本，调式专用
	 */
	GALAXY_ELEVATOR_TRACK_COPY("592800", "test","JyWgbc0zRazjpnsl2FXcl58Hnvc",
		"tblIcQvVJiaR7EJY",
		"凤仪的银河电梯排期跟踪_副本"),

	/**
	 * 凤仪的银河特检院电梯维保有效期_副本，调式专用
	 */
	GOVERNMENT_ELEVATOR_TRACK_COPY("592800", "test","GYKcbRElTaTduUs3tqkcxRHsnMf",
		"tblez7JNq0KjwsfP",
		"凤仪的银河特检院电梯维保有效期_副本"),

	/**
	 * 少维的配件申请记录_副本，调式专用
	 */
	PART_APPLY_RECORD_COPY("592800", "test","R2mrbysswal4ALswDW2ck4yVnag",
		"tblAnERudfoSdAZ5",
		"少维的配件申请记录_副本"),

	/**
	 * 少维的配件申请记录_副本，调式专用
	 */
	PART_APPLY_RECORD_COPY2("592800", "test","R2mrbysswal4ALswDW2ck4yVnag",
		"tblQAJUr2QuWCrGs",
		"配件流程协作 副本 2"),

	/**
	 * 少维的银河维保客户_副本，调式专用
	 */
	MAINTENANCE_CUSTOMER_INFORMATION_COPY("592800", "test","XOWfbI3hBaiDwmsCRMsc8eBgnFb",
		"tblex1w1uRE7hup6",
		"少维的银河维保客户_副本"),

	/**
	 * 凤仪的电梯年审日期_副本，调式专用
	 */
	ELEVATOR_ANNUAL_REVIEW_DATE_COPY("592800", "test","GYKcbRElTaTduUs3tqkcxRHsnMf",
		"tbl1S3jWyHVVCkYS",
		"凤仪的电梯年审日期_副本"),

	/**
	 * 凤仪的电梯排期-合规数据表_副本，调式专用
	 */
	ELEVATOR_MAINTENANCE_RISK_DATA_COPY("592800", "test","BDD4babWKa0EsXssAEuc7gBQnce",
		"tbldXTH4KIzBayXo",
		"凤仪的电梯排期合规管理数据表_副本"),

	/**
	 * 凤仪的保养工单-逾期风险数据表_副本，调式专用
	 */
	ELEVATOR_MAINTENANCE_OVERDUE_DATA_COPY("592800", "test","BDD4babWKa0EsXssAEuc7gBQnce",
		"tblkuc0DyD9rBsbJ",
		"凤仪的保养工单-逾期风险数据表_副本"),

	/**
	 * 凤仪的保养工单-质量评分数据表_副本，调式专用
	 */
	ELEVATOR_MAINTENANCE_QUALITY_DATA_COPY("592800", "test","BDD4babWKa0EsXssAEuc7gBQnce",
		"tblSLAm7lDt2Oq2a",
		"凤仪的保养工单-质量评分数据表_副本"),

	/**
	 * 凤仪的特检院匹配失败电梯_副本，调式专用
	 */
	GOVERNMENT_ELEVATOR_MATCH_FAILURE_COPY("592800", "test","GYKcbRElTaTduUs3tqkcxRHsnMf",
		"tbl7vrgxK0i3EyXJ",
		"凤仪特检院匹配失败电梯_副本"),

	/**
	 * 凤仪的每日考勤数据表_副本，调式专用
	 */
	ELEVATOR_DAILY_ATTENDANCE_COPY("592800", "test","BDD4babWKa0EsXssAEuc7gBQnce",
		"tbl3MS8gcs89alV6",
		"凤仪的每日考勤数据表_副本"),

	/**
	 * 天雄的调度队列测试副本，调式专用
	 */
	ELEVATOR_QUEUE_COPY("592800", "test","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tblf2Tb0PDPskrWu",
		"天雄的调度队列测试副本"),

	/**
	 * 天雄的电梯基础信息副本，调试专用
	 */
	ELEVATOR_BASIC_INFO_COPY("592800", "test","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tbliKGs2C6rFN71J",
		"天雄的电梯基础信息副本"),

	/**
	 * 天雄的人员信息副本，调试专用
	 */
	ELEVATOR_PERSON_INFO_COPY("592800", "test","AXvobT4Q4a4JKGsWJQRcr0A5nId",
		"tblebtDaH7uMnHOA",
		"天雄的人员信息副本"),

	/**
	 * 凤仪的每日考勤统计副本，调试专用
	 */
	ELEVATOR_DAILY_ATTENDANCE_STATISTICS_COPY("592800", "test","BDD4babWKa0EsXssAEuc7gBQnce",
		"tblzaLyLeV2P41oz",
		"凤仪的每日考勤统计副本"),

	/**
	 * 杨亮-用户每月绩效
	 */
	USER_PERFORMANCE_MONTH("592800", "prod","C5KWbakVcaabDTs7LSjclxidnpe",
		"tbl3mHi6Kdx4Lge3",
		"杨亮-用户每月绩效"),

	/**
	 * 杨亮-梯台维度维保成本
	 */
	ELEVATOR_MAINTAIN_COST_MONTH("592800", "prod","C5KWbakVcaabDTs7LSjclxidnpe",
							   "tblCPAMN1zlBvdBP",
							   "杨亮-梯台维度维保成本"),

	/**
	 * 杨亮-保养工单明细-月度
	 */
	ELEVATOR_BY_MONTH("592800", "prod","C5KWbakVcaabDTs7LSjclxidnpe",
									 "tbl71lRLwFlCFP3M",
									 "杨亮-保养工单明细-月度"),

	/**
	 * 杨亮-维修工单明细-月度
	 */
	ELEVATOR_WX_MONTH("592800", "prod","C5KWbakVcaabDTs7LSjclxidnpe",
						  "tblRC4iiLaKCqPtB",
						  "杨亮-维修工单明细-月度"),

	/**
	 * 杨亮-事务工单明细-月度
	 */
	ELEVATOR_SW_MONTH("592800", "prod","C5KWbakVcaabDTs7LSjclxidnpe",
						  "tbl1smVhVOgmxlgx",
						  "杨亮-事务工单明细-月度"),

	/**
	 * 宇航的合同续签表
	 */
	CONTRACT_CONTINUE("592800", "prod",
		"ZuJnbgfhmawC7BsYHTOcw5PHnbh",
		"tbl3gleyJI1gELmy"
	, "宇航的合同续签表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日风险事件指标表
	 */
	DAILY_RISK_EVENT_INDEX(
		"592800", "prod",
		"BCqzbK5B6aaLnKsgXaScX01Ynmb",
		"tbl6uEybBciuuU4r",
		"天雄的按日风险事件指标表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日风险事件明细表
	 */
	DAILY_RISK_EVENT_DETAIL(
		"592800", "prod",
		"BCqzbK5B6aaLnKsgXaScX01Ynmb",
		"tblGQ4X4weDIAr54",
		"天雄的按日风险事件明细表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按周维修健康指标
	 */
	WEEKLY_REPAIR_HEALTH_INDEX(
		"592800", "prod",
		"BCqzbK5B6aaLnKsgXaScX01Ynmb",
		"tblO9A4DQOIdN2iO",
		"天雄的按周维修健康指标表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按月维修健康指标表
	 */
	MONTHLY_REPAIR_HEALTH_INDEX(
		"592800", "prod",
		"BCqzbK5B6aaLnKsgXaScX01Ynmb",
		"tblnnMIVj8V9piPl",
		"天雄的按月维修健康指标表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日维修工单明细表
	 */
	REPAIR_PLAN_DETAIL(
		"592800", "prod",
		"BCqzbK5B6aaLnKsgXaScX01Ynmb",
		"tblcc48aX2tkVN3V",
		"天雄的按日维修工单明细表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日维修工单明细表
	 */
	REPAIR_PLAN_DETAIL_V2(
		"592800", "prod",
		"KNEObWrtRarUkzsQcmzc5DcLnLc",
		"tblvcEo7aFKIoLTU",
		"天雄的维修工单明细表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日维修工单明细表
	 */
	REPAIR_PLAN_COUNT_V2(
		"592800", "prod",
		"KNEObWrtRarUkzsQcmzc5DcLnLc",
		"tblkJH9sVvSQIzEv",
		"天雄的维修工单统计表"),

	/**
	 * 天雄的救援业务监控分析仪表盘
	 * 按日维修工单明细表
	 */
	RESCUE_PLAN_DETAIL_V2(
		"592800", "prod",
		"CmT7bSb9eaMMyosW3Foc3ahRnVg",
		"tblE40Z9ncr6GYo2",
		"天雄的救援工单明细表"),

	/**
	 * 天雄的救援业务监控分析仪表盘
	 * 按日维修工单明细表
	 */
	RESCUE_PLAN_COUNT_V2(
		"592800", "prod",
		"CmT7bSb9eaMMyosW3Foc3ahRnVg",
		"tblzXyiUHHnMksin",
		"天雄的救援工单统计表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按周救援健康指标表
	 */
	WEEKLY_RESCUE_HEALTH_INDEX(
		"592800", "prod",
			"BCqzbK5B6aaLnKsgXaScX01Ynmb",
			"tbl6Ove8FwJGlT4r",
			"天雄的按周救援健康指标表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按月救援健康指标表
	 */
	MONTHLY_RESCUE_HEALTH_INDEX(
		"592800", "prod",
			"BCqzbK5B6aaLnKsgXaScX01Ynmb",
			"tblRIinCY1UWm0Vd",
			"天雄的按月救援健康指标表"),

	/**
	 * 天雄的故障业务监控分析仪表盘
	 * 按日救援工单明细表
	 */
	RESCUE_PLAN_DETAIL(
		"592800", "prod",
			"BCqzbK5B6aaLnKsgXaScX01Ynmb",
			"tbliXqJcvagyyX0d",
			"天雄的按日救援工单明细表"),

	/**
	 * 宇航的合同周报
	 * 丢保率月趋势
	 */
	CONTRACT_LOSS_RATE_MONTH_TREND(
		"592800", "prod",
			"AFtkbZ2UxaT9dEspjTLcwWclncc",
			"tbleBi3xVLJTuGOW",
			"宇航的丢保率月趋势"),

	/**
	 * 宇航的合同周报
	 * 丢保率周趋势
	 */
	CONTRACT_LOSS_RATE_WEEK_TREND(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tbl4qUYP28ZVZnqy",
		"宇航的丢保率周趋势"),

	/**
	 * 宇航的合同周报
	 * 丢保率日趋势
	 */
	CONTRACT_LOSS_RATE_DAY_TREND(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblcXztO9cgs0NEY",
		"宇航的丢保率日趋势"),

	/**
	 * 宇航的合同周报
	 * 丢保月数据详情
	 */
	CONTRACT_LOSS_MONTH_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tbls25kdgZLFMRS4",
		"宇航的丢保月数据详情"),

	/**
	 * 宇航的合同周报
	 * 丢保周数据详情
	 */
	CONTRACT_LOSS_WEEK_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblhLc7mQIFjqK42",
		"宇航的丢保周数据详情"),

	/**
	 * 宇航的合同周报
	 * 丢保日数据详情
	 */
	CONTRACT_LOSS_DAY_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblHY34a27r1eKX4",
		"宇航的丢保日数据详情"),

	/**
	 * 宇航的合同周报
	 * 及时续约率月详情数据
	 */
	CONTRACT_CONTINUE_MONTH_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblzeEPRofznGoI9",
		"宇航的及时续约率月数据详情"),

	/**
	 * 宇航的合同周报
	 * 及时续约率月详情数据-月最后一日数据
	 */
	CONTRACT_CONTINUE_MONTH_LAST_DATE(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblbt1M52vSGo9gq",
		"宇航的及时续约率月数据详情"),

	/**
	 * 宇航的合同周报
	 * 及时续约率周详情数据
	 */
	CONTRACT_CONTINUE_WEEK_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblGOTgmqJNQfgKL",
		"宇航的及时续约率周数据详情"),

	/**
	 * 宇航的合同周报
	 * 及时续约率周详情数据-周最后一日数据
	 */
	CONTRACT_CONTINUE_WEEK_LAST_DATE(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblM2ktcSUc8gTmi",
		"宇航的及时续约率周数据详情"),

	/**
	 * 宇航的合同周报
	 * 及时续约率日详情数据
	 */
	CONTRACT_CONTINUE_DAY_DETAIL(
		"592800", "prod",
		"AFtkbZ2UxaT9dEspjTLcwWclncc",
		"tblaxQRgZs01e3VK",
		"宇航的及时续约率日数据详情");


	/**
	 * 租户id
	 */
	final String tenantId;

	/**
	 * 环境变量
	 */
	final String env;

	final String appToken;

	final String tableId;

	final String description;

	/**
	 * 根据 appToken 与 tableId 获取文档描述
	 * @return 文档描述
	 */
	public static String getDescription(String appToken, String tableId) {
		for (FeiShuDocumentEnum value : FeiShuDocumentEnum.values()) {
			if (value.getAppToken().equals(appToken) && value.getTableId().equals(tableId)) {
				return value.getDescription();
			}
		}
		return null;
	}

	/**
	 * 获取枚举
	 * @param env 环境变量
	 * @param appToken token
	 * @param tableId 文档id
	 * @return
	 */
	public static FeiShuDocumentEnum getEnum(String env, String appToken, String tableId) {
		if (env.equals("dev")) {
			env = "test";
		}
		for (FeiShuDocumentEnum value : FeiShuDocumentEnum.values()) {
            if (value.getEnv().equals(env) && value.getAppToken().equals(appToken) && value.getTableId().equals(tableId)) {
                return value;
            }
        }
        return null;
    }

}
